package com.teamall.web.tssy.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class TsSyDeptArg {
    private String pk_name = "ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<TsSyDeptCriteria> oredCriteria;

    public TsSyDeptArg() {
        oredCriteria = new ArrayList<TsSyDeptCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<TsSyDeptCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(TsSyDeptCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public TsSyDeptCriteria or() {
    	TsSyDeptCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public TsSyDeptCriteria createCriteria() {
    	TsSyDeptCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected TsSyDeptCriteria createCriteriaInternal() {
    	TsSyDeptCriteria criteria = new TsSyDeptCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<TsSyDeptCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<TsSyDeptCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<TsSyDeptCriterion> getAllCriteria() {
            return criteria;
        }

        public List<TsSyDeptCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new TsSyDeptCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyDeptCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyDeptCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new TsSyDeptCriterion(condition, value1, value2));
        }

        public TsSyDeptCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andIdIsNull() {
            addCriterion("ID is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdLessThan(String value) {
            addCriterion("ID <", value, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdLike(String value) {
            addCriterion("ID like ", value, "ID", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdNotLike(String value) {
            addCriterion("ID  not like ", value, "ID", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdLeftLike(String value) {
            addCriterion("ID like ", value, "ID", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdNotLeftLike(String value) {
            addCriterion("ID  not like ", value, "ID", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdRightLike(String value) {
            addCriterion("ID like ", value, "ID", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdNotRightLike(String value) {
            addCriterion("ID  not like ", value, "ID", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdIn(List<String> values) {
            addCriterion("ID  in ", values, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdNotIn(List<String> values) {
            addCriterion("ID not in ", values, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdBetween(String value1, String value2) {
            addCriterion("ID between ", value1, value2, "ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between ", value1, value2, "ID");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andDeptNameIsNull() {
            addCriterion("DEPT_NAME is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameIsNotNull() {
            addCriterion("DEPT_NAME is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameEqualTo(String value) {
            addCriterion("DEPT_NAME =", value, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameNotEqualTo(String value) {
            addCriterion("DEPT_NAME <>", value, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameGreaterThan(String value) {
            addCriterion("DEPT_NAME >", value, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameGreaterThanOrEqualTo(String value) {
            addCriterion("DEPT_NAME >=", value, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameLessThan(String value) {
            addCriterion("DEPT_NAME <", value, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameLessThanOrEqualTo(String value) {
            addCriterion("DEPT_NAME <=", value, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameLike(String value) {
            addCriterion("DEPT_NAME like ", value, "DEPT_NAME", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameNotLike(String value) {
            addCriterion("DEPT_NAME  not like ", value, "DEPT_NAME", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameLeftLike(String value) {
            addCriterion("DEPT_NAME like ", value, "DEPT_NAME", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameNotLeftLike(String value) {
            addCriterion("DEPT_NAME  not like ", value, "DEPT_NAME", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameRightLike(String value) {
            addCriterion("DEPT_NAME like ", value, "DEPT_NAME", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameNotRightLike(String value) {
            addCriterion("DEPT_NAME  not like ", value, "DEPT_NAME", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameIn(List<String> values) {
            addCriterion("DEPT_NAME  in ", values, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameNotIn(List<String> values) {
            addCriterion("DEPT_NAME not in ", values, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameBetween(String value1, String value2) {
            addCriterion("DEPT_NAME between ", value1, value2, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptNameNotBetween(String value1, String value2) {
            addCriterion("DEPT_NAME not between ", value1, value2, "DEPT_NAME");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andDeptPhoneIsNull() {
            addCriterion("DEPT_PHONE is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneIsNotNull() {
            addCriterion("DEPT_PHONE is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneEqualTo(String value) {
            addCriterion("DEPT_PHONE =", value, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneNotEqualTo(String value) {
            addCriterion("DEPT_PHONE <>", value, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneGreaterThan(String value) {
            addCriterion("DEPT_PHONE >", value, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("DEPT_PHONE >=", value, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneLessThan(String value) {
            addCriterion("DEPT_PHONE <", value, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneLessThanOrEqualTo(String value) {
            addCriterion("DEPT_PHONE <=", value, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneLike(String value) {
            addCriterion("DEPT_PHONE like ", value, "DEPT_PHONE", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneNotLike(String value) {
            addCriterion("DEPT_PHONE  not like ", value, "DEPT_PHONE", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneLeftLike(String value) {
            addCriterion("DEPT_PHONE like ", value, "DEPT_PHONE", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneNotLeftLike(String value) {
            addCriterion("DEPT_PHONE  not like ", value, "DEPT_PHONE", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneRightLike(String value) {
            addCriterion("DEPT_PHONE like ", value, "DEPT_PHONE", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneNotRightLike(String value) {
            addCriterion("DEPT_PHONE  not like ", value, "DEPT_PHONE", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneIn(List<String> values) {
            addCriterion("DEPT_PHONE  in ", values, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneNotIn(List<String> values) {
            addCriterion("DEPT_PHONE not in ", values, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneBetween(String value1, String value2) {
            addCriterion("DEPT_PHONE between ", value1, value2, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andDeptPhoneNotBetween(String value1, String value2) {
            addCriterion("DEPT_PHONE not between ", value1, value2, "DEPT_PHONE");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andLinkmanIdIsNull() {
            addCriterion("LINKMAN_ID is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdIsNotNull() {
            addCriterion("LINKMAN_ID is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdEqualTo(String value) {
            addCriterion("LINKMAN_ID =", value, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdNotEqualTo(String value) {
            addCriterion("LINKMAN_ID <>", value, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdGreaterThan(String value) {
            addCriterion("LINKMAN_ID >", value, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdGreaterThanOrEqualTo(String value) {
            addCriterion("LINKMAN_ID >=", value, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdLessThan(String value) {
            addCriterion("LINKMAN_ID <", value, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdLessThanOrEqualTo(String value) {
            addCriterion("LINKMAN_ID <=", value, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdLike(String value) {
            addCriterion("LINKMAN_ID like ", value, "LINKMAN_ID", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdNotLike(String value) {
            addCriterion("LINKMAN_ID  not like ", value, "LINKMAN_ID", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdLeftLike(String value) {
            addCriterion("LINKMAN_ID like ", value, "LINKMAN_ID", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdNotLeftLike(String value) {
            addCriterion("LINKMAN_ID  not like ", value, "LINKMAN_ID", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdRightLike(String value) {
            addCriterion("LINKMAN_ID like ", value, "LINKMAN_ID", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdNotRightLike(String value) {
            addCriterion("LINKMAN_ID  not like ", value, "LINKMAN_ID", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdIn(List<String> values) {
            addCriterion("LINKMAN_ID  in ", values, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdNotIn(List<String> values) {
            addCriterion("LINKMAN_ID not in ", values, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdBetween(String value1, String value2) {
            addCriterion("LINKMAN_ID between ", value1, value2, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanIdNotBetween(String value1, String value2) {
            addCriterion("LINKMAN_ID not between ", value1, value2, "LINKMAN_ID");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andLinkmanMobileIsNull() {
            addCriterion("LINKMAN_MOBILE is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileIsNotNull() {
            addCriterion("LINKMAN_MOBILE is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileEqualTo(String value) {
            addCriterion("LINKMAN_MOBILE =", value, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileNotEqualTo(String value) {
            addCriterion("LINKMAN_MOBILE <>", value, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileGreaterThan(String value) {
            addCriterion("LINKMAN_MOBILE >", value, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileGreaterThanOrEqualTo(String value) {
            addCriterion("LINKMAN_MOBILE >=", value, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileLessThan(String value) {
            addCriterion("LINKMAN_MOBILE <", value, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileLessThanOrEqualTo(String value) {
            addCriterion("LINKMAN_MOBILE <=", value, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileLike(String value) {
            addCriterion("LINKMAN_MOBILE like ", value, "LINKMAN_MOBILE", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileNotLike(String value) {
            addCriterion("LINKMAN_MOBILE  not like ", value, "LINKMAN_MOBILE", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileLeftLike(String value) {
            addCriterion("LINKMAN_MOBILE like ", value, "LINKMAN_MOBILE", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileNotLeftLike(String value) {
            addCriterion("LINKMAN_MOBILE  not like ", value, "LINKMAN_MOBILE", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileRightLike(String value) {
            addCriterion("LINKMAN_MOBILE like ", value, "LINKMAN_MOBILE", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileNotRightLike(String value) {
            addCriterion("LINKMAN_MOBILE  not like ", value, "LINKMAN_MOBILE", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileIn(List<String> values) {
            addCriterion("LINKMAN_MOBILE  in ", values, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileNotIn(List<String> values) {
            addCriterion("LINKMAN_MOBILE not in ", values, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileBetween(String value1, String value2) {
            addCriterion("LINKMAN_MOBILE between ", value1, value2, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andLinkmanMobileNotBetween(String value1, String value2) {
            addCriterion("LINKMAN_MOBILE not between ", value1, value2, "LINKMAN_MOBILE");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andCreateByIsNull() {
            addCriterion("CREATE_BY is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByIsNotNull() {
            addCriterion("CREATE_BY is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByEqualTo(String value) {
            addCriterion("CREATE_BY =", value, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByNotEqualTo(String value) {
            addCriterion("CREATE_BY <>", value, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByGreaterThan(String value) {
            addCriterion("CREATE_BY >", value, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_BY >=", value, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByLessThan(String value) {
            addCriterion("CREATE_BY <", value, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("CREATE_BY <=", value, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByNotLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByLeftLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByNotLeftLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByRightLike(String value) {
            addCriterion("CREATE_BY like ", value, "CREATE_BY", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByNotRightLike(String value) {
            addCriterion("CREATE_BY  not like ", value, "CREATE_BY", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByIn(List<String> values) {
            addCriterion("CREATE_BY  in ", values, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByNotIn(List<String> values) {
            addCriterion("CREATE_BY not in ", values, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByBetween(String value1, String value2) {
            addCriterion("CREATE_BY between ", value1, value2, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("CREATE_BY not between ", value1, value2, "CREATE_BY");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeLike(Date value) {
            addCriterion("CREATE_TIME like ", value, "CREATE_TIME", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeNotLike(Date value) {
            addCriterion("CREATE_TIME  not like ", value, "CREATE_TIME", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeLeftLike(Date value) {
            addCriterion("CREATE_TIME like ", value, "CREATE_TIME", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeNotLeftLike(Date value) {
            addCriterion("CREATE_TIME  not like ", value, "CREATE_TIME", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeRightLike(Date value) {
            addCriterion("CREATE_TIME like ", value, "CREATE_TIME", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeNotRightLike(Date value) {
            addCriterion("CREATE_TIME  not like ", value, "CREATE_TIME", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME  in ", values, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in ", values, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between ", value1, value2, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between ", value1, value2, "CREATE_TIME");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andIsDelIsNull() {
            addCriterion("IS_DEL is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelIsNotNull() {
            addCriterion("IS_DEL is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelEqualTo(String value) {
            addCriterion("IS_DEL =", value, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelNotEqualTo(String value) {
            addCriterion("IS_DEL <>", value, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelGreaterThan(String value) {
            addCriterion("IS_DEL >", value, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelGreaterThanOrEqualTo(String value) {
            addCriterion("IS_DEL >=", value, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelLessThan(String value) {
            addCriterion("IS_DEL <", value, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelLessThanOrEqualTo(String value) {
            addCriterion("IS_DEL <=", value, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelNotLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelLeftLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelNotLeftLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelRightLike(String value) {
            addCriterion("IS_DEL like ", value, "IS_DEL", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelNotRightLike(String value) {
            addCriterion("IS_DEL  not like ", value, "IS_DEL", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelIn(List<String> values) {
            addCriterion("IS_DEL  in ", values, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelNotIn(List<String> values) {
            addCriterion("IS_DEL not in ", values, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelBetween(String value1, String value2) {
            addCriterion("IS_DEL between ", value1, value2, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsDelNotBetween(String value1, String value2) {
            addCriterion("IS_DEL not between ", value1, value2, "IS_DEL");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andUpdateByIsNull() {
            addCriterion("UPDATE_BY is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByIsNotNull() {
            addCriterion("UPDATE_BY is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByEqualTo(String value) {
            addCriterion("UPDATE_BY =", value, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByNotEqualTo(String value) {
            addCriterion("UPDATE_BY <>", value, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByGreaterThan(String value) {
            addCriterion("UPDATE_BY >", value, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY >=", value, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByLessThan(String value) {
            addCriterion("UPDATE_BY <", value, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY <=", value, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByLike(String value) {
            addCriterion("UPDATE_BY like ", value, "UPDATE_BY", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByNotLike(String value) {
            addCriterion("UPDATE_BY  not like ", value, "UPDATE_BY", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByLeftLike(String value) {
            addCriterion("UPDATE_BY like ", value, "UPDATE_BY", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByNotLeftLike(String value) {
            addCriterion("UPDATE_BY  not like ", value, "UPDATE_BY", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByRightLike(String value) {
            addCriterion("UPDATE_BY like ", value, "UPDATE_BY", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByNotRightLike(String value) {
            addCriterion("UPDATE_BY  not like ", value, "UPDATE_BY", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByIn(List<String> values) {
            addCriterion("UPDATE_BY  in ", values, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByNotIn(List<String> values) {
            addCriterion("UPDATE_BY not in ", values, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByBetween(String value1, String value2) {
            addCriterion("UPDATE_BY between ", value1, value2, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("UPDATE_BY not between ", value1, value2, "UPDATE_BY");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UPDATE_TIME =", value, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UPDATE_TIME <>", value, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UPDATE_TIME >", value, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME >=", value, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeLessThan(Date value) {
            addCriterion("UPDATE_TIME <", value, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME <=", value, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeLike(Date value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeNotLike(Date value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeLeftLike(Date value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeNotLeftLike(Date value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeRightLike(Date value) {
            addCriterion("UPDATE_TIME like ", value, "UPDATE_TIME", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeNotRightLike(Date value) {
            addCriterion("UPDATE_TIME  not like ", value, "UPDATE_TIME", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UPDATE_TIME  in ", values, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UPDATE_TIME not in ", values, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME between ", value1, value2, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME not between ", value1, value2, "UPDATE_TIME");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkLike(String value) {
            addCriterion("REMARK like ", value, "REMARK", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkNotLike(String value) {
            addCriterion("REMARK  not like ", value, "REMARK", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkLeftLike(String value) {
            addCriterion("REMARK like ", value, "REMARK", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkNotLeftLike(String value) {
            addCriterion("REMARK  not like ", value, "REMARK", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkRightLike(String value) {
            addCriterion("REMARK like ", value, "REMARK", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkNotRightLike(String value) {
            addCriterion("REMARK  not like ", value, "REMARK", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkIn(List<String> values) {
            addCriterion("REMARK  in ", values, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in ", values, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between ", value1, value2, "REMARK");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between ", value1, value2, "REMARK");
            return (TsSyDeptCriteria) this;
        }
        public TsSyDeptCriteria andIsEnableIsNull() {
            addCriterion("IS_ENABLE is null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableIsNotNull() {
            addCriterion("IS_ENABLE is not null");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableEqualTo(String value) {
            addCriterion("IS_ENABLE =", value, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableNotEqualTo(String value) {
            addCriterion("IS_ENABLE <>", value, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableGreaterThan(String value) {
            addCriterion("IS_ENABLE >", value, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableGreaterThanOrEqualTo(String value) {
            addCriterion("IS_ENABLE >=", value, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableLessThan(String value) {
            addCriterion("IS_ENABLE <", value, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableLessThanOrEqualTo(String value) {
            addCriterion("IS_ENABLE <=", value, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableLike(String value) {
            addCriterion("IS_ENABLE like ", value, "IS_ENABLE", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableNotLike(String value) {
            addCriterion("IS_ENABLE  not like ", value, "IS_ENABLE", 1);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableLeftLike(String value) {
            addCriterion("IS_ENABLE like ", value, "IS_ENABLE", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableNotLeftLike(String value) {
            addCriterion("IS_ENABLE  not like ", value, "IS_ENABLE", 0);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableRightLike(String value) {
            addCriterion("IS_ENABLE like ", value, "IS_ENABLE", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableNotRightLike(String value) {
            addCriterion("IS_ENABLE  not like ", value, "IS_ENABLE", 2);
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableIn(List<String> values) {
            addCriterion("IS_ENABLE  in ", values, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableNotIn(List<String> values) {
            addCriterion("IS_ENABLE not in ", values, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableBetween(String value1, String value2) {
            addCriterion("IS_ENABLE between ", value1, value2, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

        public TsSyDeptCriteria andIsEnableNotBetween(String value1, String value2) {
            addCriterion("IS_ENABLE not between ", value1, value2, "IS_ENABLE");
            return (TsSyDeptCriteria) this;
        }

    }

    public static class TsSyDeptCriteria extends GeneratedCriteria {

        protected TsSyDeptCriteria() {
            super();
        }
    }

    public static class TsSyDeptCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected TsSyDeptCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected TsSyDeptCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected TsSyDeptCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected TsSyDeptCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected TsSyDeptCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected TsSyDeptCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}